package day07.exercise;

public class Sub extends Super {
	int j = 30;

	public Sub() {
		super();//只要在super()里面打转,那么就代表子类对象并没有创建
		print();
		//this.print()
		j = 40;
	}

	public void print() {
		System.out.println(j);
	}

	public static void main(String[] args) {

		//0
		//30
		//40
		System.out.println(new Sub().j);
	}
}
